package com.fly.show.notepad.action;
//CopyAction.java

import org.eclipse.jface.action.Action;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.swt.SWT;

import com.fly.show.notepad.MainWindow;

public class CopyAction extends Action
{
    public CopyAction()
    {
        super();
        setText("复制(&C)");
        setToolTipText("复制");
        setAccelerator(SWT.CTRL + 'C');
        setImageDescriptor(ImageDescriptor.createFromFile(NewAction.class, "icons\\copy.gif"));
    }
    
    @Override
    public void run()
    {
        MainWindow.getApp().getContent().copy();
    }
}